package com.whfc.fse.dao;

import com.whfc.fse.entity.FseGantryData;
import org.apache.ibatis.annotations.Param;

public interface FseGantryDataMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(FseGantryData record);

    int insertSelective(FseGantryData record);

    FseGantryData selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(FseGantryData record);

    int updateByPrimaryKey(FseGantryData record);

    /**
     * 使用硬件id和设备id查询最新数据
     *
     * @param gantryId
     * @return
     */
    FseGantryData selectByGantryId(@Param("gantryId") Integer gantryId);

    /**
     * 删除龙门吊
     * @param gantryId
     */
    void logicDelByGantryId(Integer gantryId);
}